const serverBase = "http://106.12.147.168:8888"
// const serverBase = "http://127.0.0.0.8888"
//  const serverBase = "http://localhost:8888"

export default {
    API: "http://106.12.147.168",
    // 用户注册
    API_POST_REGISTER: serverBase + '/register/',
    // 用户登录
    API_POST_LOGIN: serverBase + '/login/',
    // 机票查询
    API_POST_QUERY: serverBase + "/planeTicketQuery/queryTicket/",
    //多程机票查询
    API_GET_MULTI_TICKET: serverBase + "/planeTicketQuery/multistageTicket/",
    // 用户信息
    API_GET_USER: serverBase + '/user/',
    //乘机人信息
    API_PEOPLE: serverBase + '/people/',
    // 查询订单根据订单编号
    API_GET_ORDER_BYORDERID: serverBase + "/order/getOrderById/",
    // 查询订单根据用户
    API_GET_ORDER_BYID: serverBase + "/order/getOrderByUserId/",
    // 修改订单状态：
    API_Update_OrderStatus_ById: serverBase + "/order/updateOrderStatusById/",
    //删除订单
    API_DELETE_ORDER_BYID: serverBase + "/order/deleteOrderById/",
    // 航班号
    API_GET_flight_number: serverBase + "/planeTicketQuery/queryTicket/",
    // 查询所有城市
    API_GET_citAll: serverBase + "/city/getCityAll",

    API_GET_transfersTicket: serverBase + '/planeTicketQuery/transfersTicket/',
    //查询航班号
    API_GET_flight: serverBase + "/flightNumber/getByFlight/",
    //根据起始城市查询航班号
    API_GET_flight_city: serverBase + "/flightNumber/getFlightNumberByUpCityAndDownCity/",

    // 获取所有的航班公司
    API_GET_Airlines: serverBase + "/plane/getAirlines/",
    // 根据航班公司名找到航班公司信息
    API_GET_AirlinesByName: serverBase + "/plane/getAirlines/",
    // 查询每个城市前八条热门机票
    API_GET_GetTicketByCity: serverBase + "/flightNumber/getTicketByCity/",

    // 用户退票账户添加金额
    API_GET_ADDMONEY: serverBase + "/money/addMoney/",
    // 用户退票返回库存
    API_GET_RETREATTICKET:serverBase+"/order/retreatTicket",
    // 扣钱
    API_GET_UPMONEY: serverBase + "/money/upMoney/",
    // 创建订单
    API_POST_CREATEORDER:serverBase+"/order/createOrder/",
    //获取飞机信息
    API_GET_Plane:serverBase+"/plane/"
}


